package com.app.tool.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 
 * @TableName EMS_BASEVOLTAGE
 */
@TableName(value ="EMS_BASEVOLTAGE")
public class EmsBasevoltage implements Serializable {
    /**
     * 
     */
    @TableId
    private Long id;

    /**
     * 
     */
    private String code;

    /**
     * 
     */
    private String name;

    /**
     * 
     */
    private BigDecimal nomvol;

    /**
     * 
     */
    private Integer vlcolor;

    /**
     * 
     */
    private BigDecimal zbase;

    /**
     * 
     */
    private BigDecimal ibase;

    /**
     * 
     */
    private BigDecimal hvol;

    /**
     * 
     */
    private BigDecimal lvol;

    /**
     * 
     */
    private BigDecimal vbaseKh;

    /**
     * 
     */
    private BigDecimal sbaseKh;

    /**
     * 
     */
    private Integer n1Manner;

    /**
     * 
     */
    private BigDecimal pgen;

    /**
     * 
     */
    private BigDecimal qgen;

    /**
     * 
     */
    private BigDecimal pload;

    /**
     * 
     */
    private BigDecimal qload;

    /**
     * 
     */
    private BigDecimal ploss;

    /**
     * 
     */
    private BigDecimal qloss;

    /**
     * 
     */
    private Integer bstatics;

    /**
     * 
     */
    private Integer bloss;

    /**
     * 
     */
    private Integer regionId;

    /**
     * 
     */
    private String rdfId;

    /**
     * 
     */
    private Integer replicateFlag;

    /**
     * 
     */
    private Integer downloadRegion;

    /**
     * 
     */
    private Integer isProvinceUse;

    /**
     * 
     */
    private Integer privRegionId;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Long getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 
     */
    public String getCode() {
        return code;
    }

    /**
     * 
     */
    public void setCode(String code) {
        this.code = code;
    }

    /**
     * 
     */
    public String getName() {
        return name;
    }

    /**
     * 
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 
     */
    public BigDecimal getNomvol() {
        return nomvol;
    }

    /**
     * 
     */
    public void setNomvol(BigDecimal nomvol) {
        this.nomvol = nomvol;
    }

    /**
     * 
     */
    public Integer getVlcolor() {
        return vlcolor;
    }

    /**
     * 
     */
    public void setVlcolor(Integer vlcolor) {
        this.vlcolor = vlcolor;
    }

    /**
     * 
     */
    public BigDecimal getZbase() {
        return zbase;
    }

    /**
     * 
     */
    public void setZbase(BigDecimal zbase) {
        this.zbase = zbase;
    }

    /**
     * 
     */
    public BigDecimal getIbase() {
        return ibase;
    }

    /**
     * 
     */
    public void setIbase(BigDecimal ibase) {
        this.ibase = ibase;
    }

    /**
     * 
     */
    public BigDecimal getHvol() {
        return hvol;
    }

    /**
     * 
     */
    public void setHvol(BigDecimal hvol) {
        this.hvol = hvol;
    }

    /**
     * 
     */
    public BigDecimal getLvol() {
        return lvol;
    }

    /**
     * 
     */
    public void setLvol(BigDecimal lvol) {
        this.lvol = lvol;
    }

    /**
     * 
     */
    public BigDecimal getVbaseKh() {
        return vbaseKh;
    }

    /**
     * 
     */
    public void setVbaseKh(BigDecimal vbaseKh) {
        this.vbaseKh = vbaseKh;
    }

    /**
     * 
     */
    public BigDecimal getSbaseKh() {
        return sbaseKh;
    }

    /**
     * 
     */
    public void setSbaseKh(BigDecimal sbaseKh) {
        this.sbaseKh = sbaseKh;
    }

    /**
     * 
     */
    public Integer getN1Manner() {
        return n1Manner;
    }

    /**
     * 
     */
    public void setN1Manner(Integer n1Manner) {
        this.n1Manner = n1Manner;
    }

    /**
     * 
     */
    public BigDecimal getPgen() {
        return pgen;
    }

    /**
     * 
     */
    public void setPgen(BigDecimal pgen) {
        this.pgen = pgen;
    }

    /**
     * 
     */
    public BigDecimal getQgen() {
        return qgen;
    }

    /**
     * 
     */
    public void setQgen(BigDecimal qgen) {
        this.qgen = qgen;
    }

    /**
     * 
     */
    public BigDecimal getPload() {
        return pload;
    }

    /**
     * 
     */
    public void setPload(BigDecimal pload) {
        this.pload = pload;
    }

    /**
     * 
     */
    public BigDecimal getQload() {
        return qload;
    }

    /**
     * 
     */
    public void setQload(BigDecimal qload) {
        this.qload = qload;
    }

    /**
     * 
     */
    public BigDecimal getPloss() {
        return ploss;
    }

    /**
     * 
     */
    public void setPloss(BigDecimal ploss) {
        this.ploss = ploss;
    }

    /**
     * 
     */
    public BigDecimal getQloss() {
        return qloss;
    }

    /**
     * 
     */
    public void setQloss(BigDecimal qloss) {
        this.qloss = qloss;
    }

    /**
     * 
     */
    public Integer getBstatics() {
        return bstatics;
    }

    /**
     * 
     */
    public void setBstatics(Integer bstatics) {
        this.bstatics = bstatics;
    }

    /**
     * 
     */
    public Integer getBloss() {
        return bloss;
    }

    /**
     * 
     */
    public void setBloss(Integer bloss) {
        this.bloss = bloss;
    }

    /**
     * 
     */
    public Integer getRegionId() {
        return regionId;
    }

    /**
     * 
     */
    public void setRegionId(Integer regionId) {
        this.regionId = regionId;
    }

    /**
     * 
     */
    public String getRdfId() {
        return rdfId;
    }

    /**
     * 
     */
    public void setRdfId(String rdfId) {
        this.rdfId = rdfId;
    }

    /**
     * 
     */
    public Integer getReplicateFlag() {
        return replicateFlag;
    }

    /**
     * 
     */
    public void setReplicateFlag(Integer replicateFlag) {
        this.replicateFlag = replicateFlag;
    }

    /**
     * 
     */
    public Integer getDownloadRegion() {
        return downloadRegion;
    }

    /**
     * 
     */
    public void setDownloadRegion(Integer downloadRegion) {
        this.downloadRegion = downloadRegion;
    }

    /**
     * 
     */
    public Integer getIsProvinceUse() {
        return isProvinceUse;
    }

    /**
     * 
     */
    public void setIsProvinceUse(Integer isProvinceUse) {
        this.isProvinceUse = isProvinceUse;
    }

    /**
     * 
     */
    public Integer getPrivRegionId() {
        return privRegionId;
    }

    /**
     * 
     */
    public void setPrivRegionId(Integer privRegionId) {
        this.privRegionId = privRegionId;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        EmsBasevoltage other = (EmsBasevoltage) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getCode() == null ? other.getCode() == null : this.getCode().equals(other.getCode()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getNomvol() == null ? other.getNomvol() == null : this.getNomvol().equals(other.getNomvol()))
            && (this.getVlcolor() == null ? other.getVlcolor() == null : this.getVlcolor().equals(other.getVlcolor()))
            && (this.getZbase() == null ? other.getZbase() == null : this.getZbase().equals(other.getZbase()))
            && (this.getIbase() == null ? other.getIbase() == null : this.getIbase().equals(other.getIbase()))
            && (this.getHvol() == null ? other.getHvol() == null : this.getHvol().equals(other.getHvol()))
            && (this.getLvol() == null ? other.getLvol() == null : this.getLvol().equals(other.getLvol()))
            && (this.getVbaseKh() == null ? other.getVbaseKh() == null : this.getVbaseKh().equals(other.getVbaseKh()))
            && (this.getSbaseKh() == null ? other.getSbaseKh() == null : this.getSbaseKh().equals(other.getSbaseKh()))
            && (this.getN1Manner() == null ? other.getN1Manner() == null : this.getN1Manner().equals(other.getN1Manner()))
            && (this.getPgen() == null ? other.getPgen() == null : this.getPgen().equals(other.getPgen()))
            && (this.getQgen() == null ? other.getQgen() == null : this.getQgen().equals(other.getQgen()))
            && (this.getPload() == null ? other.getPload() == null : this.getPload().equals(other.getPload()))
            && (this.getQload() == null ? other.getQload() == null : this.getQload().equals(other.getQload()))
            && (this.getPloss() == null ? other.getPloss() == null : this.getPloss().equals(other.getPloss()))
            && (this.getQloss() == null ? other.getQloss() == null : this.getQloss().equals(other.getQloss()))
            && (this.getBstatics() == null ? other.getBstatics() == null : this.getBstatics().equals(other.getBstatics()))
            && (this.getBloss() == null ? other.getBloss() == null : this.getBloss().equals(other.getBloss()))
            && (this.getRegionId() == null ? other.getRegionId() == null : this.getRegionId().equals(other.getRegionId()))
            && (this.getRdfId() == null ? other.getRdfId() == null : this.getRdfId().equals(other.getRdfId()))
            && (this.getReplicateFlag() == null ? other.getReplicateFlag() == null : this.getReplicateFlag().equals(other.getReplicateFlag()))
            && (this.getDownloadRegion() == null ? other.getDownloadRegion() == null : this.getDownloadRegion().equals(other.getDownloadRegion()))
            && (this.getIsProvinceUse() == null ? other.getIsProvinceUse() == null : this.getIsProvinceUse().equals(other.getIsProvinceUse()))
            && (this.getPrivRegionId() == null ? other.getPrivRegionId() == null : this.getPrivRegionId().equals(other.getPrivRegionId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getCode() == null) ? 0 : getCode().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getNomvol() == null) ? 0 : getNomvol().hashCode());
        result = prime * result + ((getVlcolor() == null) ? 0 : getVlcolor().hashCode());
        result = prime * result + ((getZbase() == null) ? 0 : getZbase().hashCode());
        result = prime * result + ((getIbase() == null) ? 0 : getIbase().hashCode());
        result = prime * result + ((getHvol() == null) ? 0 : getHvol().hashCode());
        result = prime * result + ((getLvol() == null) ? 0 : getLvol().hashCode());
        result = prime * result + ((getVbaseKh() == null) ? 0 : getVbaseKh().hashCode());
        result = prime * result + ((getSbaseKh() == null) ? 0 : getSbaseKh().hashCode());
        result = prime * result + ((getN1Manner() == null) ? 0 : getN1Manner().hashCode());
        result = prime * result + ((getPgen() == null) ? 0 : getPgen().hashCode());
        result = prime * result + ((getQgen() == null) ? 0 : getQgen().hashCode());
        result = prime * result + ((getPload() == null) ? 0 : getPload().hashCode());
        result = prime * result + ((getQload() == null) ? 0 : getQload().hashCode());
        result = prime * result + ((getPloss() == null) ? 0 : getPloss().hashCode());
        result = prime * result + ((getQloss() == null) ? 0 : getQloss().hashCode());
        result = prime * result + ((getBstatics() == null) ? 0 : getBstatics().hashCode());
        result = prime * result + ((getBloss() == null) ? 0 : getBloss().hashCode());
        result = prime * result + ((getRegionId() == null) ? 0 : getRegionId().hashCode());
        result = prime * result + ((getRdfId() == null) ? 0 : getRdfId().hashCode());
        result = prime * result + ((getReplicateFlag() == null) ? 0 : getReplicateFlag().hashCode());
        result = prime * result + ((getDownloadRegion() == null) ? 0 : getDownloadRegion().hashCode());
        result = prime * result + ((getIsProvinceUse() == null) ? 0 : getIsProvinceUse().hashCode());
        result = prime * result + ((getPrivRegionId() == null) ? 0 : getPrivRegionId().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", code=").append(code);
        sb.append(", name=").append(name);
        sb.append(", nomvol=").append(nomvol);
        sb.append(", vlcolor=").append(vlcolor);
        sb.append(", zbase=").append(zbase);
        sb.append(", ibase=").append(ibase);
        sb.append(", hvol=").append(hvol);
        sb.append(", lvol=").append(lvol);
        sb.append(", vbaseKh=").append(vbaseKh);
        sb.append(", sbaseKh=").append(sbaseKh);
        sb.append(", n1Manner=").append(n1Manner);
        sb.append(", pgen=").append(pgen);
        sb.append(", qgen=").append(qgen);
        sb.append(", pload=").append(pload);
        sb.append(", qload=").append(qload);
        sb.append(", ploss=").append(ploss);
        sb.append(", qloss=").append(qloss);
        sb.append(", bstatics=").append(bstatics);
        sb.append(", bloss=").append(bloss);
        sb.append(", regionId=").append(regionId);
        sb.append(", rdfId=").append(rdfId);
        sb.append(", replicateFlag=").append(replicateFlag);
        sb.append(", downloadRegion=").append(downloadRegion);
        sb.append(", isProvinceUse=").append(isProvinceUse);
        sb.append(", privRegionId=").append(privRegionId);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}